let express = require("express");
let log = require("./router/log");
let dolog = require("./router/dolog")
let app = express();

app.use("/",log);
app.use("/",dolog);

// 逻辑错误信息提示中间件
app.use((err,req,res,next) => {
    res.send(`警告:${err}`);
});


//加载3000端口
app.listen(3000,() => {
    console.log("服务器端口3000已开启");
});